import ReactDOM from 'react-dom/client'

import App from './App.tsx'

import './styles/tailwind.css'

import { Provider } from 'react-redux'
import store from './store/index.ts'
import React from 'react'

const root = ReactDOM.createRoot(document.getElementById('root')!)

root.render(<App />)

// @reduxjs/toolkit + strore 实现状态管理及持久化
// import { Provider } from 'react-redux'
// import { store, persistor } from './store2/index.ts'
// import { PersistGate } from 'redux-persist/integration/react'

console.warn('main')

root.render(
  <ConfigProvider locale={zhCN} theme={theme}>
    <Provider store={store}>
        <App />
    </Provider>
  </ConfigProvider>
)
